package com.example.demo.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.example.demo.entity.Role;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hanfei
 * @since 2020-04-08
 */
@Repository
public interface RoleMapper extends BaseMapper<Role> {
        List<Role> findByKey(Pagination page, @Param("key") String key);
        List<Role> findByKeyAndAll(Pagination page, @Param("key") String key, @Param("entity") Role entity);
}
